import request from '/@/utils/request';

export function fetchList(query?: Object) {
	return request({
		url: '/blood/bloodxExamCustomer/page',
		method: 'get',
		params: query,
	});
}

export function addObj(obj?: Object) {
	return request({
		url: '/blood/bloodxExamCustomer',
		method: 'post',
		data: obj,
	});
}

export function getObj(id?: string) {
	return request({
		url: '/blood/bloodxExamCustomer/' + id,
		method: 'get',
	});
}

export function delObjs(ids?: Object) {
	return request({
		url: '/blood/bloodxExamCustomer',
		method: 'delete',
		data: ids,
	});
}

export function putObj(obj?: Object) {
	return request({
		url: '/blood/bloodxExamCustomer',
		method: 'put',
		data: obj,
	});
}

// PUT  /admin/bloodxExamCustomer/signById
export function signById(query?: Object) {
	return request({
		url: '/blood/bloodxExamCustomer/signById',
		method: 'get',
		params: query,
	});
}

// get  /admin/bloodxExamCustomer/getCustomerByExam
export function getCustomerByExam(query?: Object) {
	return request({
		url: '/blood/bloodxExamCustomer/getCustomerByExam',
		method: 'get',
		params: query,
	});
}

// get  /admin/bloodxExamCustomer/getCustomerByExam
export function getBloodExamLabelNumber() {
	return request({
		url: '/blood/bloodxExam/getBloodExamLabelNumber',
		method: 'get',
	});
}


// /admin/bloodxExamCustomer/getTime
export function getTime() {
	return request({
		url: '/blood/bloodxExamCustomer/getTime',
		method: 'get',
	});
}
